#qr-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 999999;
  transition: all 0.3s ease;
  cursor: pointer;
  transform-origin: bottom right;
}

#qr-container.collapsed {
  width: 32px;
  height: 32px;
  padding: 6px;
}

#qr-container.expanded {
  padding: 16px;
  cursor: default;
  position: fixed;
  bottom: 20px;
  right: 20px;
  transform: translateY(-100%) translateY(32px);
}

#qr-toggle {
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin: auto;
  border-radius: 4px;
}

#qr-container.collapsed #qr-toggle {
  display: block;
}

#qr-container.expanded #qr-toggle {
  display: none;
}

#qr-content {
  display: none;
}

#qr-container.expanded #qr-content {
  display: block;
}

#qr-code {
  position: relative;
  width: 160px;
  height: 160px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

#qr-code img {
  max-width: 100%;
  height: auto;
  background: white;
}

#qr-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: white;
  padding: 3px;
  border-radius: 3px;
  z-index: 2;
}

#site-info {
  text-align: center;
  margin-top: 16px;
  margin-bottom: 0;
  width: 160px;
}

.site-name {
  color: #666;
  font-size: 12px;
  margin-bottom: 4px;
  word-break: break-all;
}

.page-title {
  font-weight: bold;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #333;
}

#qr-container.collapsed:hover {
  transform: scale(1.1);
}

#qr-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 24px;
  color: #666;
  border-radius: 50%;
  transition: all 0.2s ease;
}

#qr-close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

#qr-container.expanded #qr-close {
  display: flex;
}

#qr-download {
  position: absolute;
  top: 4px;
  right: 28px;
  width: 20px;
  height: 20px;
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  border-radius: 50%;
  transition: all 0.2s ease;
}

#qr-download:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

#qr-container.expanded #qr-download {
  display: flex;
}
